import request from '@/util/ProRequest.js'

// 获取生产报工列表
export function getfeedbackList(params) {
    return request({
        url: '/feedback/list',
        method: 'get',
        params
    })
}

// 新增生产报工列表
export function addFeedbackList(data) {
    return request({
        url: '/feedback/add',
        method: 'post',
        data
    })
}

//单查询id
export function queryFeedbackById(id){
    return request({
        url: '/feedback/id/'+id,
        method: 'get'
    })
}

export function updateFeedbackById(feedbackData){
     return request({
        url: '/feedback/update',
        method: 'put',
        data: feedbackData    
    })
}



export function deleteFeedback(id) {
    return request({
        url: '/feedback/delete/' + id,
        method: 'delete',
    })
}

export function batchDeleteFeedback(ids) {
    return request({
        url: '/feedback/batchDelete/'+ids,
        method: 'delete',

    })
}